#pragma once

struct adpcm_state 
{
	short      valprev;        /* Previous output value */
	char       index;          /* Index into stepsize table */
};

class ImaAdpcm
{
public:
	ImaAdpcm(void);
	~ImaAdpcm(void);

public:
	void adpcm_decoder(char *indata, char* outdata, int len, int &nOutLen);

public:
	void adpcm_encoder(char *indata, char* outdata, int len, int &nOutLen);
};
